package cn.tedu.antcolony.passport.controller;

import cn.tedu.antcolony.passport.security.iml.GuavaBloomFilterService;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@Api(tags = "google工具Guava处理布隆过滤器")
public class GuavaBloomFilterController {
    @Autowired
    private GuavaBloomFilterService guavaBloomFilterService;

    @GetMapping("/guavaBloomFilter")
    @ApiOperation("guava布隆过滤器插入100万样本数据并额外10w测试是否存在")
    public void guavaBloomFilter(){
        guavaBloomFilterService.guavaBloomFilter();
    }
}
